# this script provides functional testing of all xml_ functions
function result = runtests()
  fprintf('grid toolbox functional tests\n')

  # test gt_load file
  fprintf('testing gt_load file\n')
  foo = gt_load('file:///test/test.txt', 'text');

  # test gt_save file
  fprintf('testing gt_save file\n')
  gt_save('file:///test/test_save.txt', 'text', 'foo');

  delete('test/test_save.txt');

  # test gt_load ftp
  #fprintf('testing gt_load ftp\n')
  #gt_load('ftp://localhost/text.txt', 'ftp');
  
  # test gt_save ftp
  #fprintf('testing gt_save ftp\n')
  #gt_save('ftp://gtonic:password@localhost/upload_ftp.txt', 'ftp');
  
  # test gt_load http
  #fprintf('testing gt_load http\n')
  #gt_load('http://localhost:4711/home/gtonic/text.txt', 'http');

  # test gt_save http
  #fprintf('testing gt_save http\n')
  #gt_save('http://localhost:4711/home/gtonic/http_text.txt', 'http');

  fprintf('finished\n')
  exit 
endfunction
